package cn.fl.warrant.service.impl;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cmm.mid.core.framework.page.Pager;
import cn.cmm.base.framework.exception.BaseException;
import cn.cmm.base.framework.utils.BaseLogUtils;
import cn.cmm.base.framework.utils.CollectionUtils;
import cn.cmm.base.framework.utils.StringUtils;
import cn.fl.framework.base.context.CurrentThreadContext;
import cn.fl.warrant.service.IArcMgrDetailService;
import cn.fl.warrant.service.IArcSwitchDetailService;
import cn.fl.warrant.transform.ArcMgrDetailVOTransform;
import cn.fl.warrant.transform.ArcSwitchDetailVOTransform;
import cn.fl.warrant.vo.ArcMgrDetailVO;
import cn.fl.warrant.vo.ArcSwitchDetailVO;
import fl.warrant.facade.archive.api.IArcMgrDetailApiService;
import fl.warrant.facade.archive.api.IArcSwitchDetailApiService;
import fl.warrant.facade.archive.condition.ArcMgrDetailQC;
import fl.warrant.facade.archive.dto.ArcMgrDetailDTO;

/**
 * @Description: 转仓权证资料明细表
 * @Description: 业务层方法名称前缀：新增：add* 删除：remove* 修改：modify* 查询对象：select* get* 批量：batch* 查询集合：search*
 */
@Service
public class ArcSwitchDetailServiceImpl implements IArcSwitchDetailService {

	/**
	 * 日志
	 */
	private static final Logger logger = LoggerFactory.getLogger(IArcMgrDetailService.class);
	

	@Autowired
	private IArcSwitchDetailApiService arcSwitchDetailApiService;

	
	

	@Override
	public Long add(ArcSwitchDetailVO entity) throws BaseException {
		return arcSwitchDetailApiService.add(ArcSwitchDetailVOTransform.toDTO(entity));
	}
	@Override
	public boolean modify(ArcSwitchDetailVO entity) throws BaseException {
		// TODO Auto-generated method stub
		return arcSwitchDetailApiService.modify(ArcSwitchDetailVOTransform.toDTO(entity));
	}
	
}
